package com.demo.controller;

import cn.hutool.bloomfilter.BitMapBloomFilter;

public class bloomFilterDemo {

    //布尔过滤，判断是否存在

    public static void main(String[] args) {
        // 初始化
        BitMapBloomFilter filter = new BitMapBloomFilter(10);
        filter.add("123");
        filter.add("abc");
        filter.add("ddd");

        // 查找
        boolean abc = filter.contains("abc");
        System.out.println(abc);
    }
}
